<fieldset>Edit User Details
<% form_for(@user) do |f| %>
  <%= f.error_messages %>
  <p>
    <label for="user_name">Name:</label><br />
    <%= f.text_field :username, :size=>40 %>
  </p>
  <p>
    <label for="user_password">Password:</label><br />
    <%= f.password_field :password, :size => 40 %>
  </p>
  <p>
    <label for="user_password_confirmation">Confirm:</label><br />
    <%= f.password_field :password_confirmation, :size => 40 %>
  </p>
  <p>
    <label for="Email">Email:</lable><br />
    <%= f.text_field :email, :size=>40 %>
  </p>
  <p>
    <%= f.submit 'Update' %>
  </p>
<% end %>
<%= link_to 'Show', @user %> |
<%= link_to 'Back', users_path %>
</fieldset>
